package com.hmall.user.mapper;

import com.hmall.user.pojo.Address;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AddressMapper {
    @Select("select * from tb_address where user_id = #{uid} ")
    List<Address> findAddressByUserId(Long uid);

    @Select("select * from tb_address where id = #{addressId}")
    Address findAddressByAddressId(Long addressId);
}
